package com.example.lol.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.demo.R;
import com.example.lol.bean.NewsBean1;
import com.example.lol.bean.YundingBean;

import org.jetbrains.annotations.NotNull;

public class YundingAdapter extends BaseQuickAdapter<YundingBean, BaseViewHolder> {
    public YundingAdapter() {
        super(R.layout.item_yunding);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, YundingBean yundingbean) {

        baseViewHolder.setText(R.id.textView21, yundingbean.getYd_zhenrong());
        baseViewHolder.setText(R.id.textView27, yundingbean.getYd_more());
        baseViewHolder.setText(R.id.textView28, yundingbean.getYd_auther());
        baseViewHolder.setText(R.id.textView29, yundingbean.getYd_zhankai());
        baseViewHolder.setImageResource(R.id.imageView11, yundingbean.getDrawableyunding1());
        baseViewHolder.setImageResource(R.id.imageView12, yundingbean.getDrawableyunding2());
        baseViewHolder.setImageResource(R.id.circularImageView, yundingbean.getDrawableyunding3());
        baseViewHolder.setImageResource(R.id.imageView21, yundingbean.getDrawableyunding4());

        baseViewHolder.setImageResource(R.id.imageView14, yundingbean.getDrawableyunding5());
        baseViewHolder.setImageResource(R.id.imageView15, yundingbean.getDrawableyunding6());
        baseViewHolder.setImageResource(R.id.imageView16, yundingbean.getDrawableyunding7());
        baseViewHolder.setImageResource(R.id.imageView17, yundingbean.getDrawableyunding8());
        baseViewHolder.setImageResource(R.id.imageView18, yundingbean.getDrawableyunding9());
        baseViewHolder.setImageResource(R.id.imageView19, yundingbean.getDrawableyunding10());
        baseViewHolder.setImageResource(R.id.imageView20, yundingbean.getDrawableyunding11());
        baseViewHolder.setImageResource(R.id.imageView13, yundingbean.getDrawableyunding12());

    }
}
